import request from '../../utils/request';

export const fetchList = (query) => {
    return request({
        url: '/advertise/general/list',
        method: 'post',
        data: query
    })
}

export const addAdvertise = (query) => {
    return request({
        url: '/advertise/general/add',
        method: 'post',
        data: query
    })
}

export const getDeatil = (query) => {
    return request({
        url: '/advertise/general/edit/get/'+query,
        method: 'get'
    })
}

export const editAdvertise = (query) => {
    return request({
        url: '/advertise/general/edit',
        method: 'post',
        data: query
    })
}

export const updateAdvertise = (query) => {
    return request({
        url: '/advertise/general/update',
        method: 'post',
        data: query
    })
}
